﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Comissoes.Models.LISTAS>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <%= ViewData["scripts"] %>
    <!-- JS Custom -->
    <script type="text/javascript" src="../../Scripts/cadastros/listas.js"></script>
</head>
<body>
    <div class="cabecalho ui-state-highlight">
        <span class="icodtl" />
        <span class="txt">
            <%= Html.Encode("Detalhes da Loja") %>
        </span>
    </div>
    <fieldset class="container transparent">
        <label class="input80">
            <button type="button" class="documentcommand" onclick="loadOption('/Listas/Edit', true);">Nova</button>
        </label>
        <label class="input80">
            <button class="pencilcommand" type="button" onclick="Edit('Listas', 'COD_LISTA', true)">Editar</button>
        </label>
        <label class="input80">
            <button class="listcommand" type="button" onclick="List('Listas', true)">Retornar</button>
        </label>
        <label class="input80">
            <button class="trashcommand" type="button" onclick="deleteDialog('lista', 'Listas', <%= Html.Encode(Model.COD_LISTA) %>)">Excluir</button>
        </label>
    </fieldset>
    <fieldset class="resizable container field800 border ui-widget-content ui-corner-all">
        <fieldset class="container field800 transparent">
            <%= Html.Hidden("COD_LISTA", Model.COD_LISTA) %>

            <%= Html.Label("for60", "Código:") %>
            <%= Html.Label("for80 ui-state-default right", Html.Encode(Model.COD_LISTA)) %>

            <%= Html.Label("for60 clear", "Descrição:") %>
            <%= Html.Label("for380 ui-state-default", Model.DESC_LISTA) %>

            <%= Html.Label("for60 clear", "Início:") %>
            <%= Html.Label("for140 center ui-state-default", Html.Encode(Model.VALIDADE_INICIO_LISTA)) %>

            <%= Html.Label("for80 right", "Término:") %>
            <%= Html.Label("for140 center ui-state-default", Html.Encode(Model.VALIDADE_TERMINO_LISTA)) %>

            <fieldset class="also container field760 float">
                <div class="Accordion">
	                <h3><a href="#">Produtos</a></h3>
	                <div>
	                    <table id="tProdutos"></table>
                        <div id="pProdutos"></div>
	                </div>
                </div>
            </fieldset>
    </fieldset>
</body>
</html>